package com.mozai.shopping.service;


import com.mozai.shopping.pojo.Activity;
import com.mozai.shopping.pojo.PageResp;
import com.mozai.shopping.pojo.http.ActivityQueryRep;
import com.mozai.shopping.utils.bean.CommonQueryBean;

/**
* @author wj183
* @description 针对表【activity】的数据库操作Service
* @createDate 2024-09-29 08:10:24
*/
public interface ActivityService {

    /**
     * 活动新增
     * @param activity
     */
    void insertActivity(Activity activity);

    /**
     * 删除活动
     * @param activity
     * @return
     */
    int deleteActivity(Activity activity);

    /**
     * 修改活动
     * @param activity
     * @return
     */
    int modifyActivity(Activity activity);

    /**
     * 分页活动查询
     * @param activity
     * @param commonQueryBean
     * @return
     */
    PageResp<Activity> queryActivityList(Activity activity, CommonQueryBean commonQueryBean);

    /**
     * 查询单个活动
     * @param activityQueryRep
     * @return
     */
    Activity queryActivity(ActivityQueryRep activityQueryRep);
}
